import request from '@/utils/request'
export default {
  //条件查询带分页
  getPageList(page, limit, searcheObj) {
    return request({
      url: `/eduservice/coursefront/${page}/${limit}`,
      method: 'post',
      data: searcheObj
    })
  },
  //查询所有分类
  getSubjects() {
    return request({
      url: `/eduservice/subject`,
      method: 'get'
    })
  },
  //查询课程详情
  getCourseDetailed(courseId){
    return request({
      url:`/eduservice/coursefront/${courseId}`,
      method:'get'
    })
  }
}